package com.site.wisdom_construction.service.publicModule;

import com.site.wisdom_construction.dao.publicModule.KnowledgeTypesDao;
import com.site.wisdom_construction.entity.publicModule.KnowledgeTypes;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/5/26
 * @Description
 */
@Service
public class KnowledgeTypesService implements KnowledgeTypesDao {
    @Autowired
    private KnowledgeTypesDao knowledgeTypesDao;

    @Override
    public int insertKnowledgeTypes(Map map) {
        return knowledgeTypesDao.insertKnowledgeTypes(map);
    }

    @Override
    public int deleteKnowledgeTypes(Map map) {
        return knowledgeTypesDao.deleteKnowledgeTypes(map);
    }

    @Override
    public int updateKnowledgeTypes(Map map) {
        return knowledgeTypesDao.updateKnowledgeTypes(map);
    }

    @Override
    public List<KnowledgeTypes> findKnowledgeTypesByPage(Map map) {
        return knowledgeTypesDao.findKnowledgeTypesByPage(map);
    }

    @Override
    public long Total(Map map) {
        return knowledgeTypesDao.Total(map);
    }

    @Override
    public List<KnowledgeTypes> selectKnowledgeTypes(Map map) {
        return knowledgeTypesDao.selectKnowledgeTypes(map);
    }
}
